<extend name="Public/base" />
<block name="content">
<div id="content" style="min-width:800px;">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid search-form">
			<form class="m-filter" autocomplete="off">
				<div class="clearfix">
					<a class="pull-left btn btn-success btn-filter-show" id="j-filter-show"><span class="icon-chevron-down"></span></a>
				</div>
				
				<div class="filter-box" id="j-filter-box">
					<!-- 基础信息 -->
					<div class="filter-base filter-group">
						<a class="title"><span class="icon-list"></span> 基础信息</a>
						<span class="control-group">
							<select class="form-control" style="width: 180px;" name="activity_id" id="activity_id" >
								<option value=0>选择活动</option>
								<volist name="activity_list" id="vo">
									<option value='{$vo.activity_id}'>{$vo.activity_name|strip_tags}</option>
								</volist>
								{$Think.config.ACTIVITY_TTTM}
							</select>
						</span>
					</div>
					<!-- /基础信息 -->
					<br>
					<!-- 时间 -->
					<div class="filter-date filter-group clearfix">
						<a class="title"><span class="icon-calendar"></span> 日期筛选</a>
					  	<div class="control-group pull-left">
					    	<div class="controls">
					      		<input type="text" id="start_time" name="start_time" readonly="readonly" class="datepicker" value="{:strip_tags(I('start_time'))}" placeholder="开始时间" style="width:120px; text-align:center;" >
					    	</div>
					  	</div>
					  	<div class="control-group pull-left" style="margin-left:15px;">
					    	<div class="controls">
					      		<input type="text" id="end_time" name="end_time" readonly="readonly" class="datepicker" value="{:strip_tags(I('end_time'))}" placeholder="结束时间" style="width:120px; text-align:center;" >
					    	</div>
					  	</div>　<button type="button" id="b_time" class="btn btn-warning">清除</button>
					</div>
					<!-- /时间 -->
					<div class="clearfix btn-group">
						<a class="btn btn-success btn pull-left" id="j-filter-hide" style="margin-left:15px;"><span class="icon-chevron-up"></span></a>
						<button type="button" id="search_button" url="{:U('Service/company')}" class="btn btn-primary btn pull-left"><span class="icon-search"></span></button>
					</div>	
				</div>		
			</form>
	</div>
	
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content">
							<table id="config_table" class="table table-bordered table-striped with-check">
								<thead>
									<tr>
										
				                        <th width="15%" class="taskStatus">活动</th>
				                        <th width="12%" class="taskStatus">{$service_type[13]|htmlspecialchars}</th>
				                        <th width="12%" class="taskStatus">{$service_type[14]|htmlspecialchars}</th>
				                        <th width="12%" class="taskStatus">{$service_type[15]|htmlspecialchars}</th>
				                        <th width="12%" class="taskStatus">{$service_type[16]|htmlspecialchars}</th>
				                        <th width="12%" class="taskStatus">{$service_type[17]|htmlspecialchars}</th>
				                        <th width="15%" class="taskStatus">合计</th>
									</tr>
								</thead>
								<tbody>
								<notempty name="data">
					                    <tr>
					                        <td class="taskStatus">{$data.activity_id|getActivityName|htmlspecialchars}</td>
					                        <td class="taskStatus">{$data[13]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$data[14]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$data[15]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$data[16]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$data[17]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$data['count']|htmlspecialchars}</td>
					                    </tr>
					             <else/>
									 	<tr>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus">0</td>
					                    </tr>
								</notempty>
								</tbody>
							</table>
						
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function (){
	//日期控件
	$(".datepicker").datetimepicker({
		format: 'yyyy-mm-dd hh:ii', 
	    autoclose: true,
	    todayBtn: true
	});
	//条件框
	$("#j-filter-hide").click(function(){
		$("#j-filter-box").fadeOut(300);
		$("#j-filter-show").fadeIn(300);
	});
	$("#j-filter-show").click(function(){
		$("#j-filter-box").fadeIn(300);
		$(this).fadeOut(300);
	});
	//清除
	$('#b_time').click(function(){
		$('#start_time,#end_time').val('');
	});
	set_value("activity_id",'{:I('activity_id')}')
	
});

//导航高亮
highlight_subnav("{:U('Service/company')}");//导航高亮
</script>
</block>